var Drawable = function(rawObject,shouldCollide){
    this.shouldCollide = shouldCollide;
    this.x = rawObject.coordinateX;
    this.y = rawObject.coordinateY;
    this.z = rawObject.coordinateZ;
    this.width = rawObject.width;
    this.height = rawObject.height;
    this.alphaD = rawObject.alphaD;
    this.gamaD = rawObject.gammaD;
    this.bettaD = rawObject.bettaD;
    this.src = rawObject.src;
    this.id = rawObject.id;
    this.alphaD = 0;
    this.gammaD = 0;
    this.bettaD = 0;
    this.spriteSheet = null;
    this.showing = false;
    this.shouldShow = false;
    this.isAnimated = false;
    this.isShape = false;
    this.name = "Drawable";
}

Drawable.prototype = {

    load : function(engine, densityMap){},

    isSelected : function(engine,puv){
        if (!this.showing)
            return false;

        var ouv = sheetengine.drawing.getPointuv(this.spriteSheet.centerp);



        if (puv.u > ouv.u - this.width/2 &&
            puv.u < ouv.u + this.width/2 &&
            puv.v > ouv.v - this.height/2 &&
            puv.v < ouv.v + this.height/2)
            return true;


        return false;
    },

    getSheet : function(){
        return this.spriteSheet;
    },
    getImage : function(){
        return this.spriteSheet;
    },
    drawInInfo :function(context){
        context.drawImage(self.spriteSheet,self.spriteIndexX,self.spriteIndexY,48,92,0,0,48,92);
    },
    getCuttingInfo : function(){

    }

}